package com.ladlee.validata;

import com.ladlee.properties.SecurityConstants;

/**
 * @Auther: dingchang
 * @Date: 2018/12/21 14:18
 * @Description: 验证码类型枚举
 */
public enum ValidataCodeType {

    /**
     * 短信验证码
     */
    SMS{
        @Override
        public String getParamNameOnValidate() {
            return SecurityConstants.DEFAULT_PARAMETER_NAME_CODE_SMS;
        }
    },

    /**
     * 图片验证码
     */
    IMAGE {
        @Override
        public String getParamNameOnValidate() {
            return SecurityConstants.DEFAULT_PARAMETER_NAME_CODE_IMAGE;
        }
    };
    /**
     * 校验时从请求中获取参数的名字
     */
    public abstract String getParamNameOnValidate();
}
